package com.wmd.validation.annotation;

import java.lang.annotation.*;

/**
*类说明
*@author yincheng lu
*@time 2019年1月7日下午4:37:26
*@Description
*/
@Target(value = ElementType.FIELD)
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
public @interface FileValidation {
	boolean fileNotEmpty() default true;
	boolean delayFile() default false;
	Class<?>[] groups() default {};
	String message() default "文件不存在或格式错误！";
	String[] type() default {"jpg","png"};
	String conditionField() default "";
	String[] conditionFieldValue() default {};
	
	long size() default 5*1024*1024;
}
